home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 3
/
BBS in a box - Trilogy III.iso
/
Files
/
Bus
/
T-Z
/
VCR+(app+src) Folder
/
Sources
/
lookup2.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-03-17
|
371 b
|
26 lines
|
[
TEXT/KAHL
]
#include "VCRplus.h"
extern unsigned long start[480], leng[480] ;
/* the 512-entry tables of starting time and pgm duration */
long lookup2( long stime, long durat)
{
long j;
for(j=0; j<481; j++)
{
if(stime == start[j])
{
if(durat == leng[j]) break ;
}
}
if( j >= 480 )
{
SetDText(dlgMESSAGE,"\pMissing index entry!");
j = 0;
}
return(j);
}